package org.bootstrap.config;

import cn.hutool.core.lang.Console;
import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;

@Component
public class ApplicationLifeCycle implements SmartLifecycle {

    @Override
    public void start() {
        Console.log("开始启动");
    }

    @Override
    public void stop() {
        Console.log("启动完成");
    }

    @Override
    public boolean isRunning() {
        return false;
    }

    @Override
    public boolean isAutoStartup() {
        return false;
    }

    @Override
    public void stop(Runnable runnable) {

    }

    @Override
    public int getPhase() {
        return 0;
    }
}
